package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 customer
 * 
 * @author ruoyi
 * @date 2024-06-29
 */
public class Customer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 客户编号 */
    @Excel(name = "客户编号")
    private Long code;

    /** 客户手机号 */
    @Excel(name = "客户手机号")
    private String phone;

    /** 客户头像地址 */
    @Excel(name = "客户头像地址")
    private String avatar;

    /** 微信授权信息 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "微信授权信息", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approveTime;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(Long code) 
    {
        this.code = code;
    }

    public Long getCode() 
    {
        return code;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setApproveTime(Date approveTime) 
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime() 
    {
        return approveTime;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("phone", getPhone())
            .append("avatar", getAvatar())
            .append("approveTime", getApproveTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("operator", getOperator())
            .toString();
    }
}
